// SPDX-License-Identifier: GPL-2.0
/*
 * CPP: REINTERPRET_CAST
 *
 * (C) 2024.05.24 BiscuitOS <buddy.zhang@aliyun.com>
 */
#include <iostream>
#include <string.h>

using namespace std;

struct STRUCT_A {
	int a;
};

struct STRUCT_B {
	int b;
};

int main(void)
{
	STRUCT_A as = { 10 };
	STRUCT_B *p = reinterpret_cast<STRUCT_B *>(&as);

	std::cout << "BTYPE: " << p->b << std::endl;

	return 0;
}
